home *** CD-ROM | disk | FTP | other *** search
/ Night Owl 6 / Night Owl's Shareware - PDSI-006 - Night Owl Corp (1990).iso / 007a / wordhunt.zip / INSTALL.BAT < prev    next >
DOS Batch File  |  1991-11-12  |  3KB  |  83 lines

  1. echo off
  2. cls
  3. if %1a == a: goto WHATDRIVE
  4. if %1b == b: goto WHATDRIVE
  5. if %1 == c: goto START
  6. if %1 == C: goto START
  7. if %1 == d: goto START
  8. if %1 == D: goto START
  9. if %1 == e: goto START
  10. if %1 == E: goto START
  11. if %1 == f: goto START
  12. if %1 == F: goto START 
  13. goto NOTDRIVE
  14. :START
  15. echo * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
  16. echo *                                                                       *
  17. echo *                    Word Hunt Hard Disk Installation                   *
  18. echo *                                                                       *
  19. echo * This will create a directory called %1\WORDH on your hard disk,       *
  20. echo * and will install Word Hunt and it's files in that directory.          *
  21. echo *                                                                       *
  22. echo * If you don't want Word Hunt installed at this time, press Ctrl + C.   *
  23. echo *                                                                       *
  24. echo * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
  25. echo 
  26. pause
  27. cls
  28. echo Making directory %1\WORDH . . .
  29. if exist %1\WORDH\*.* goto EXISTS
  30. md %1\WORDH
  31. :CHECK
  32. if exist WH.EXE goto CONTINUE
  33. echo 
  34. echo Place the disk containing Word Hunt and it's files in active drive.
  35. echo 
  36. pause
  37. goto CHECK
  38. :CONTINUE
  39. echo 
  40. echo Copying Word Hunt and its files . . .
  41. copy GO.BAT %1\WORDH
  42. copy INSTALL.BAT %1\WORDH
  43. copy WH.EXE %1\WORDH
  44. copy WH.DOC %1\WORDH
  45. copy DIRECTRI.TXT %1\WORDH
  46. copy *.WHL %1\WORDH
  47. if not exist %1\WORDH\WH.EXE goto INSTALLERROR
  48. if not exist %1\WORDH\DIRECTRI.TXT goto INSTALLERROR
  49. if not exist %1\WORDH\INSTALL.BAT goto INSTALLERROR
  50. cd %1\WORDH
  51. echo 
  52. echo Word Hunt is installed on your hard disk.  To run it, type WH.
  53. %1
  54. echo 
  55. goto DONE
  56. :WHATDRIVE
  57. cls
  58. echo Installation Error:  To install Word Hunt on your hard disk, you
  59. echo must include the drive as part of the install command.  For example,
  60. echo to install Word Hunt on drive C, type INSTALL C: and press Enter.
  61. goto ERRORQUIT
  62. :NOTDRIVE
  63. cls
  64. echo Installation Error: The hard drive letter can be a letter from C to F,
  65. echo For example, INSTALL C: will install Word Hunt on drive C.  You must
  66. echo include a colon after the drive letter.
  67. goto ERRORQUIT
  68. :INSTALLERROR
  69. cls
  70. echo Installation Error: Do you have enough space on your hard disk?
  71. echo Did you give the proper hard drive letter?
  72. goto ERRORQUIT
  73. :EXISTS
  74. cls
  75. echo Installation Error: WORDH Directory already exists on this drive.
  76. echo Delete this directory and all files in it, then try installing again.
  77. goto ERRORQUIT
  78. :ERRORQUIT
  79. echo 
  80. echo Word Hunt was not installed correctly.
  81. echo 
  82. :DONE
  83.